			<?php if(isset($error)){?>
				<div id="tonyError" class="error"><?php echo $error;?></div>
			<?php }elseif (isset($success)){?>
				<div id="tonySuccess" class="success"><?php echo $success;?></div>
			<?php }?>
			<div id="content">
                <div class="inner">
					<div class="topcolumn">
						<div class="logo"></div>
                            <ul  id="shortcut">
                                <li> <a href="#" title="Back To home"> <img src="<?php echo base_url();?>public/admin/img/icon/shortcut/home.png" alt="home"/><strong>Home</strong> </a> </li>
                                <li> <a href="#" title="Website Graph"> <img src="<?php echo base_url();?>public/admin/img/icon/shortcut/graph.png" alt="graph"/><strong>Graph</strong> </a> </li>
                                <li> <a href="#" title="Setting" > <img src="<?php echo base_url();?>public/admin/img/icon/shortcut/setting.png" alt="setting" /><strong>Setting</strong></a> </li> 
                                <li> <a href="#" title="Messages"> <img src="<?php echo base_url();?>public/admin/img/icon/shortcut/mail.png" alt="messages" /><strong>Message</strong></a><div class="notification" >10</div></li>
                            </ul>
					</div>
                    <div class="clear"></div>
                  	<div class="onecolumn" >
                  	
	                  <div class="header"><span ><span class="ico  gray connect"></span>Edit Menu</span> </div><!-- End header -->	
	                  <div class="clear"></div>
	                  <div class="content" >
	                  	<div class="tab_container">
	                  	<div class="tab_content"> 
	                  	<div class="load_page">
	                  	<div class="formEl_b">	
	                    	<form id="validation" action="<?php echo  admin_url();?>/edit-menu/<?php echo $menu_info->id; ?>" method="post"  > 
                         		<div class="section ">
                                	<label> <?php echo $this->lang->line('name'); ?> *<small><?php echo $this->lang->line('name'); ?></small></label>   
                                      <div> 
                                      	<input type="text" class="validate[required] large" name="name" id="name" value="<?php echo $menu_info->name;?>" />
                                      </div>
                            	</div>
                               	<div class="section ">
                                      <label> <?php echo $this->lang->line('url'); ?><small><?php echo $this->lang->line('url'); ?></small></label>   
                                      <div> 
                                      	<input type="text" class="large" value="<?php echo $menu_info->url;?>" name="url" id="url">
                                      </div>
                               	</div>
                               	<div class="section">
                               		<label><?php echo $this->lang->line('parent'); ?> *<small><?php echo $this->lang->line('parent'); ?></small></label>  
                               		<div>
					                	<select name="parent" class="add-parent" style="width: 150px;">
					                	<option value="0">Parent</option>
					                	<?php if(count($tree_cate)>0){?>
					                		<?php foreach($tree_cate as $leaf) {?>
												<option value="<?php echo $leaf->id;?>" <?php if($leaf->id == $menu_info->parent_id){echo "selected";}?>>
													<?php
														for($i=0; $i<$leaf->level-1; $i++) {
															echo '&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp';
														} 
														if($leaf->level>0) echo '&nbsp&nbsp&nbsp&nbsp|__ ';
														echo $leaf->name;
													?>
												</option>
											<?php }?>
					                	<?php }?>	
					                	</select>
				                	</div>
                               	</div>
                               	<div class="section">
                               		<label><?php echo $this->lang->line('order'); ?> *<small><?php echo $this->lang->line('order'); ?></small></label>  
                               		<div>
	                               		<select name="order" class="add-status" style="width: 150px;">
					                		<?php for($i=1; $i<=100; $i++){?>
					                		<option value="<?php echo $i;?>" <?php if($menu_info->order == $i){echo "selected";}?> ><?php echo $i;?></option>
					                		<?php }?>
					                	</select>
				                	</div>
                               	</div>
                               	<div class="section">
                               		<label><?php echo $this->lang->line('on_header'); ?> *<small><?php echo $this->lang->line('on_header'); ?></small></label>  
                               		<div>
	                               		<select name="on_top" class="add-header" style="width: 150px;">
					                		<option value="yes" <?php if($menu_info->on_top == 'yes'){echo "selected";}?>><?php echo $this->lang->line('yes'); ?></option>
					                		<option value="no" <?php if($menu_info->on_top == 'no'){echo "selected";}?>><?php echo $this->lang->line('no'); ?></option>
					                	</select>
				                	</div>
                               	</div>
                               	<div class="section">
                               		<label><?php echo $this->lang->line('on_menubar'); ?> *<small><?php echo $this->lang->line('on_menubar'); ?></small></label>  
                               		<div>
	                               		<select name="on_menubar" class="add-menubar" style="width: 150px;">
					                		<option value="yes" <?php if($menu_info->on_menubar == 'yes'){echo "selected";}?>><?php echo $this->lang->line('yes'); ?></option>
					                		<option value="no" <?php if($menu_info->on_menubar == 'no'){echo "selected";}?>><?php echo $this->lang->line('no'); ?></option>
					                	</select>
				                	</div>
                               	</div>
                               	<div class="section">
                               		<label><?php echo $this->lang->line('at_bottom'); ?> *<small><?php echo $this->lang->line('at_bottom'); ?></small></label>  
                               		<div>
	                               		<select name="at_bottom" class="add-bottom" style="width: 150px;">
					                		<option value="yes" <?php if($menu_info->at_bottom == 'yes'){echo "selected";}?>><?php echo $this->lang->line('yes'); ?></option>
					                		<option value="no" <?php if($menu_info->at_bottom == 'no'){echo "selected";}?>><?php echo $this->lang->line('no'); ?></option>
					                	</select>
				                	</div>
                               	</div>
                                <div class="section last">
                                      <div>
                                        <input type="submit" class="uibutton submit_form" value="<?php echo $this->lang->line('save');?>" id="but_addMenu" />
                                        <a class="uibutton special"   onClick="ResetForm()" title="Reset  Form"   >Clear Form</a>
                                      </div>
                               	</div>
	                    	</form>
	                  	</div> <!-- End .formEl_b -->
	                  	</div> <!-- End .load_page -->
	                  	</div> <!-- End .tab_content -->
	                  	</div> <!-- End .tab_container -->
	                  	</div> <!-- End .content -->
	                  	<div class="clear"/></div>                  
                 	</div><!-- End .onecolumn -->
                  	
                  	</div>
                  	<script type="text/javascript" src="<?php echo base_url();?>public/admin/js/login.js"></script>
        		  <script type="text/javascript">
        		  	loading('Checking',1);		
        			setTimeout( "unloading()", 500 );
					var error = '<?php if(isset($error)){echo $error;}?>';
					if(error != " "){$('#tonyError').addClass('error').html(error).stop(true,true).show().animate({ opacity: 1,right: '10'}, 1000);setTimeout('hideTop()',3500);}
		
					var success = '<?php if(isset($success)){echo $success;}?>';
					if(success != " "){$('#tonySuccess').addClass('success').html(success).stop(true,true).show().animate({ opacity: 1,right: '10'}, 1000);setTimeout('hideTop()',3500);}
				 </script> 